<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>推广中心-<?php echo $cfg_webname; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<link href="<?php echo $mcfg_basehost; ?>/m-css/tg-index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo $mcfg_basehost; ?>/m-js/jquery.js"></script>
<script src="<?php echo $mcfg_basehost; ?>/m-js/html2canvas.min.js" type="text/javascript"></script>
<script src="<?php echo $mcfg_basehost; ?>/m-js/common.js" type="text/javascript"></script>
<style type="text/css">
.wrapper{padding-bottom:56px;padding-top:0;}
.yxw-tui-bz{background:#fff;margin-top:10px;padding:15px 15px;}
.yxw-tui-bz h2{color:#333;font-size:20px;line-height:18px;font-weight:700;margin:25px 0;text-align:center;}
.yxw-tui-bz h2 span{padding:0 5px;}
.yxw-tgzn{overflow:hidden;padding-top:10px;padding-bottom:10px;}
.yxw-tgzn h3{margin-bottom:5px;color:#333;font-size:16px;line-height:22px;}
.yxw-tgzn p{color:#999;font-size:14px;line-height:24px;text-align:justify;}
.jxjgz{cursor:pointer;background:rgba(28,31,33,.25);box-shadow:0 2px 17px 0 #FF6C00;border-radius:11px 0 0 11px;position:absolute;height:22px;line-height:22px;top:10px;right:0;font-size:12px;padding:0 10px;color:#fff;}
.jjweixinBtn{position:fixed;right:15px;bottom:150px;width:40px;height:40px;background:#fff url(<?php echo $mcfg_basehost; ?>/m-images/list-fanhui.png) center no-repeat;background-size:25px 25px;border-radius:50%;box-shadow:0px 5px 11px 0px rgba(0,0,0,0.07);opacity:0.7;display:none;}

/*海报生成*/
.cl:after{content:".";display:block;height:0;font-size:0;clear:both;visibility:hidden;}
.vm{vertical-align:middle;}
.comiis_poster_box{position:fixed;left:0;bottom:0;width:100%;height:100%;z-index:999;background:rgba(0,0,0,0.85);color:#fff;transition:all .4s ease;-webkit-transition:all .4s ease;opacity:0;}
.comiis_poster_box_show{opacity:1;}
.comiis_poster_fdico{position:fixed;z-index:100;}
.comiis_poster_fdico a{display:block;width:46px;height:46px;text-align:center;border-radius:50%;overflow:hidden;margin-top:10px;}
.comiis_poster_fdico a img {width:16px;height:16px;padding-top:8px;overflow:hidden;}
.comiis_poster_fdico a span {display:block;font-size:calc(20px/2);margin-top:2px;overflow:hidden;}
.comiis_poster_okimg, .comiis_poster_imgshow{height:calc(100% - 55px);text-align:center;}
.comiis_poster_okimg img{max-width:calc(100% - 40px);max-height:calc(100% - 30px);margin:25px 20px 10px;border-radius:6px;}
.comiis_poster_oktit {padding:0 10px;height:30px;line-height:30px;font-size:14px;text-align:center;overflow:hidden;}
.comiis_poster_okclose {position:absolute;width:100%;left:0;bottom:0;height:60px;text-align:center;overflow:hidden;}
.comiis_poster_okclose a{display:block;height:60px;line-height:40px;overflow:hidden;}
.comiis_poster_okclose a img{width:40px;height:40px;}
.loading_color{width:200px;height:80px;margin:0 auto;}
.loading_color span{display:inline-block;width:3px;height:30px;animation-name:scale;-webkit-animation-name:scale;-moz-animation-name:scale;-ms-animation-name:scale;-o-animation-name:scale;animation-duration:1.2s;-webkit-animation-duration:1.2s;-moz-animation-duration:1.2s;-ms-animation-duration:1.2s;-o-animation-duration:1.2s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-ms-animation-iteration-count:infinite;-o-animation-iteration-count:infinite;}
.loading_color span.loading_color1{background:#2ecc71;}
.loading_color span.loading_color2{background:#3498db;}
.loading_color span.loading_color3{background:#9b59b6;}
.loading_color span.loading_color4{background:#e67e22;}
.loading_color span.loading_color5{background:#c0392b;}
.loading_color span.loading_color6{background:#e74c3c;}
.loading_color span.loading_color7{background:#e74c8c;}
.loading_color1{animation-delay:-1s;-webkit-animation-delay:-1s;-moz-animation-delay:-1s;-ms-animation-delay:-1s;-o-animation-delay:-1s}
.loading_color2{animation-delay:-0.9s;-webkit-animation-delay:-0.9s;-moz-animation-delay:-0.9s;-ms-animation-delay:-0.9s;-o-animation-delay:-0.9s}
.loading_color3{animation-delay:-0.8s;-webkit-animation-delay:-0.8s;-moz-animation-delay:-0.8s;-ms-animation-delay:-0.8s;-o-animation-delay:-0.8s}
.loading_color4{animation-delay:-0.7s;-webkit-animation-delay:-0.7s;-moz-animation-delay:-0.7s;-ms-animation-delay:-0.7s;-o-animation-delay:-0.7s}
.loading_color5{animation-delay:-0.6s;-webkit-animation-delay:-0.6s;-moz-animation-delay:-0.6s;-ms-animation-delay:-0.6s;-o-animation-delay:-0.6s}
.loading_color6{animation-delay:-0.5s;-webkit-animation-delay:-0.5s;-moz-animation-delay:-0.5s;-ms-animation-delay:-0.5s;-o-animation-delay:-0.5s}
.loading_color7{animation-delay:-0.4s;-webkit-animation-delay:-0.4s;-moz-animation-delay:-0.4s;-ms-animation-delay:-0.4s;-o-animation-delay:-0.4s}
@-webkit-keyframes scale{0%, 40%, 100%{-moz-transform:scaleY(0.2);-ms-transform:scaleY(0.2);-o-transform:scaleY(0.2);-webkit-transform:scaleY(0.2);transform:scaleY(0.2)}20%, 60%{-moz-transform:scaleY(1);-ms-transform:scaleY(1);-o-transform:scaleY(1);-webkit-transform:scaleY(1);transform:scaleY(1)}}
@-moz-keyframes scale{0%, 40%, 100%{-moz-transform:scaleY(0.2);-ms-transform:scaleY(0.2);-o-transform:scaleY(0.2);-webkit-transform:scaleY(0.2);transform:scaleY(0.2)}20%, 60%{-moz-transform:scaleY(1);-ms-transform:scaleY(1);-o-transform:scaleY(1);-webkit-transform:scaleY(1);transform:scaleY(1)}}
@-ms-keyframes scale{0%, 40%, 100%{-moz-transform:scaleY(0.2);-ms-transform:scaleY(0.2);-o-transform:scaleY(0.2);-webkit-transform:scaleY(0.2);transform:scaleY(0.2)}20%, 60%{-moz-transform:scaleY(1);-ms-transform:scaleY(1);-o-transform:scaleY(1);-webkit-transform:scaleY(1);transform:scaleY(1)}}
@keyframes scale{0%, 40%, 100%{-moz-transform:scaleY(0.2);-ms-transform:scaleY(0.2);-o-transform:scaleY(0.2);-webkit-transform:scaleY(0.2);transform:scaleY(0.2)}20%, 60%{-moz-transform:scaleY(1);-ms-transform:scaleY(1);-o-transform:scaleY(1);-webkit-transform:scaleY(1);transform:scaleY(1)}}

/*分销链接*/
.yxw-tglj .yxw-tglj2 a{width:50%;float:left;}
.yxw-tglj .yxw-tglj2 .btn2020{background:#333;}

/*二维码*/
.comiis_poster_foot{overflow:hidden;text-align:right;}
.comiis_poster_foot .kmewm{width:150px;height:150px;}
.comiis_poster_txta{padding:20px 50px;}
.comiis_poster_txta_box{float:left;position:relative;}
.comiis_poster_box_img{position:fixed;top:-2999px;width:640px;overflow:hidden;background:#fff;}
.comiis_poster_img{width:100%;height:100%;overflow:hidden;position:relative;}
.comiis_poster_img img{width:100%;height:auto;}
.comiis_poster_txta_h2{line-height:44px;font-size:38px;font-weight:700;color:#333;overflow:hidden;margin-top:25px;margin-bottom:15px;position:relative;}
.comiis_poster_txta_h3{line-height:44px;font-size:28px;font-weight:400;color:#ff700a;overflow:hidden;text-align:center;}

/*推广说明*/
.m-full-pnl .m-search-pnl{display:block;position:absolute;z-index:9999;top:0;right:0;bottom:0;left:0;overflow:auto;-webkit-overflow-scrolling:touch;width:100%;height:100%;background:#fff;}
.m-search-pnl{display:none;}
.m-full-pnl,.m-full-pnl body{height:100%;position:relative;}
.m-disb-scroll,.m-disb-scroll body{overflow:hidden;}
.m-m-about{padding:15px 15px 80px 15px;}
.m-m-about h3{font-weight:700;font-size:20px;line-height:32px;height:32px;padding-bottom:10px;color:#2CAEFF;}
.m-m-about p{line-height:28px;font-size:16px;color:#333;padding-bottom:10px;}
</style>
</head>
<body>

<div class="wrapper">

<!-- 提现 -->
<div class="earningsheight" style="position:relative;">
<div class="top-earnings">
<p class="earnings">可提现收益(元)</p>
<h2 class="money"><?php echo $M['shouyi'];?></h2>   
<a href="tui.php?a=tixian" class="js-btn-withdraw btn-withdraw">去提现</a>
<span id="JenIpt" class="jxjgz">规则&帮助</span>
</div>
</div>
<!-- 提现 End -->

<!-- 收益/推广人数 -->
<div class="earnings-item clearfix">

<div class="list">
<div class="item">
<a href="zqtui_list.php">
<span>推广用户数</span>
<p><?php echo $M['dangqiantuiguang']; ?><em>人</em></p>
</a>
</div>
<div class="item">
<span>已购买人数</span>
<p><?php echo $M['yigoumai']; ?><em>人</em></p>
</div>
</div>

<div class="list">
<div class="item">
<span>待到帐收益(元)</span>
<p><?php echo $M['daidaozhang']; ?></p>
</div>
<div class="item">
<span>已领取收益(元)</span>
<p><?php echo $M['yilingqu']; ?></p>
</div>
</div>

</div>
<!-- 收益/推广人数 End -->


<!-- 列表 -->
<div class="my-item-box">
<a href="tui.php?a=shouyi" class="my-item">收益明细</a>
<a href="tui.php?a=txjl" class="my-item">提现记录</a>
<a href="tui.php?a=mytjr" class="my-item my-item-bottom">我的推荐人</a>
</div>
<!-- 列表 End -->

</div>
<!-- wrapper End -->



<!-- 生成推广海报 -->
<div class="yxw-tglj">
<div class="yxw-tglj2 comiis_footer_scroll">
<a href="javascript:void(0)" class="btn2018 comiis_poster_a">生成我的推广海报</a>
<a href="javascript:void(0)" data-clipboard-target="#foo" aria-label="复制成功，快去推广吧" class="btn2020">复制我的推广链接<input id="foo" value="<?php echo $mcfg_basehost; ?>/u_<?php echo $mid;?>" style="background:#333;width:1px;color:#333;border:none;cursor:pointer;"></a>
</div>
</div>
<!-- 生成推广海报 End -->


<script src="<?php echo $mcfg_basehost; ?>/m-js/clipboard.min.js"></script>
<script>
var clipboard = new Clipboard('.btn2020');
clipboard.on('success', function(e) {
    var msg = e.trigger.getAttribute('aria-label');
    alert(msg);
    console.info('Action:', e.action);
    console.info('Text:', e.text);
    console.info('Trigger:', e.trigger);
    e.clearSelection();
});
</script>

<script type="text/javascript">
    var poster_open = 'on';
    var txt1 = '';
    var txt2 = '';
    var comiis_poster_start_wlat = 0;
    var comiis_rlmenu =  1;
    var comiis_nvscroll =  0;
    var comiis_poster_time_baxt;
    $(document).ready(function(){
        $(document).on('click', '.comiis_poster_a', function(e) {
            show_comiis_poster_ykzn();
        });
    });
    function comiis_poster_rrwz(){
        setTimeout(function(){
            html2canvas(document.querySelector(".comiis_poster_box_img"), {scale:2,useCORS:true}).then(canvas => {
                var img = canvas.toDataURL("image/jpeg", .9);
                document.getElementById('comiis_poster_images').src = img;
                $('.comiis_poster_load').hide();
                $('.comiis_poster_imgshow').show();
            });
        }, 100);
    }
    function show_comiis_poster_ykzn(){
        if(comiis_poster_start_wlat == 0){
            comiis_poster_start_wlat = 1;
            popup.open('<img src="<?php echo $cfg_basehost; ?>/apps/poster/img/imageloading.gif" class="comiis_loading">');
            var url='<?php echo $mcfg_basehost; ?>/u_<?php echo $mid;?>'
            url = encodeURIComponent(url);
            var html = '<div id="comiis_poster_box" class="comiis_poster_nchxd">\n' +
                '<div class="comiis_poster_box">\n' +
                '<div class="comiis_poster_okimg">\n' +
                '<div style="padding:150px 0;" class="comiis_poster_load">\n' +
                '<div class="loading_color">\n' +
                '  <span class="loading_color1"></span>\n' +
                '  <span class="loading_color2"></span>\n' +
                '  <span class="loading_color3"></span>\n' +
                '  <span class="loading_color4"></span>\n' +
                '  <span class="loading_color5"></span>\n' +
                '  <span class="loading_color6"></span>\n' +
                '  <span class="loading_color7"></span>\n' +
                '</div>\n' +
                '<div class="comiis_poster_oktit">正在生成海报, 请稍候</div>\n' +
                '</div>\n' +
                '<div class="comiis_poster_imgshow" style="display:none">\n' +
                '<img src="" class="vm" id="comiis_poster_images">\n' +
                '<div class="comiis_poster_oktit">长按保存图片，分享好友或朋友圈推广赚钱</div>\n' +
                '</div>\n' +
                '</div>\n' +
                '<div class="comiis_poster_okclose"><a href="javascript:;" class="comiis_poster_closekey"><img src="<?php echo $cfg_basehost; ?>/apps/poster/img/poster_okclose.png" class="vm"></a></div>\n' +
                '</div>\n' +
                '<div class="comiis_poster_box_img zibv cl">\n' +
                '<div class="comiis_poster_img"><img src="<?php echo $mcfg_basehost;?>/m-images/ke-fenxiao-hb.jpg" class="vm" id="comiis_poster_image"></div>\n' +
                '<div class="comiis_poster_txta">\n' +
                '<div class="comiis_poster_txta_box">\n' +
                '<div class="comiis_poster_txta_h2">长按扫码 立即听课</div>\n' +
                '<div class="comiis_poster_txta_h3">🎈🎈和知识做朋友👉👉</div>\n' +
                '</div>\n' +
                '<div class="comiis_poster_foot fcym">\n' +
                '<img src="<?php echo $cfg_basehost; ?>/apps/qrcode.php?url='+url+'" class="kmewm fqpl vm">\n' +
                '</div>\n' +
                '</div>\n' +
                '</div>\n' +
                '</div>';
                if(html.indexOf("comiis_poster") >= 0){
                comiis_poster_time_baxt = setTimeout(function(){
                    comiis_poster_rrwz();
                }, 5000);
                $('body').append(html);
                $('#comiis_poster_image').load(function(){
                    clearTimeout(comiis_poster_time_baxt);
                    comiis_poster_rrwz();
                });
                popup.close();
                setTimeout(function() {
                    $('.comiis_poster_box').addClass("comiis_poster_box_show");
                    $('.comiis_poster_closekey').off().on('click', function(e) {
                        $('.comiis_poster_box').removeClass("comiis_poster_box_show").on('webkitTransitionEnd transitionend', function() {
                            $('#comiis_poster_box').remove();
                            comiis_poster_start_wlat = 0;
                        });
                        return false;
                    });
                }, 60);
            }
        }
    }

    var new_comiis_user_share, is_comiis_user_share = 0;
    var as = navigator.appVersion.toLowerCase(), isqws = 0;
    if (as.match(/MicroMessenger/i) == "micromessenger" || as.match(/qq\//i) == "qq/") {
        isqws = 1;
    }
    if(isqws == 1){
        if(typeof comiis_user_share === 'function'){
            new_comiis_user_share = comiis_user_share;
            is_comiis_user_share = 1;
        }
        var comiis_user_share = function(){
            if(is_comiis_user_share == 1){
                isusershare = 0;
                new_comiis_user_share();
                if(isusershare == 1){
                    return false;
                }
            }
            isusershare = 1;
            show_comiis_poster_ykzn();
            return false;
        }
    }
</script>



<!-- 推广说明 -->
<div id="JwapSearch" class="m-search-pnl">
<?php 
$row = $dsql->GetOne("SELECT * FROM `biz_arctype` WHERE id=49");
echo "<div class='m-m-about'>".$row['content']."</div>";
?> 
<div id="JwsCloseapp-box" style="width:100%;position:fixed;padding:0 10%;bottom:15px;box-sizing:border-box;">
<div id="JwsCloseapp" style="height:50px;line-height:50px;font-size:16px;background:#ff700a;border-radius:25px;color:#fff;box-shadow:0 1px 2px rgba(25,24,40,.35);text-align:center;display:block;cursor:pointer;">
我知道了
</div>
</div>
</div>
<script>
(function(){var searchWrapObj=document.getElementById("JwapSearch");searchWrapObj&&document.body.appendChild(searchWrapObj);var sentFlag=false;var submitFlag=false;if(-1==window.location.pathname.indexOf("bbs")){showSeriesViewed()}function showSeriesViewed(){var COOKIE_NAME="LAST_VIEW_CHEXIS";var cookieValue=decodeURI(decodeURIComponent(document.cookie.replace(new RegExp(".*(?:^|; )"+COOKIE_NAME+"=([^;]*).*|.*"),"$1")));var historyObj=document.getElementById("JviewHistory");if(!cookieValue||!historyObj){return}var valueArr=cookieValue.split(",");var html="";for(var i=0;i<valueArr.length&&i<3;i++){var data=valueArr[i].split("-");if(data.length<2){continue}html+=''+data[0]+'/">'+data[1]+"</a>"}if(""!=html){historyObj.innerHTML=""+html;historyObj.style.display="block"}}var SHOW_PANNEL_CLASS="m-full-pnl";var DISABLE_SCROLL_CLASS="m-disb-scroll";var htmlObj=document.documentElement;function hasClass(el,className){if(el.classList){return el.classList.contains(className)}return !!el.className.match(new RegExp("(\\s|^)"+className+"(\\s|$)"))}function addClass(el,className){if(el.classList){el.classList.add(className)}else{!hasClass(el,className)&&(el.className+=" "+className)}}function rmvClass(el,className){if(el.classList){el.classList.remove(className)}else{hasClass(el,className)&&(el.className=el.className.replace(new RegExp("(\\s|^)"+className+"(\\s|$)")," "))}}var enIptObj=document.getElementById("JenIpt");var iptObj=document.getElementById("JwsIpt");enIptObj&&enIptObj.addEventListener("click",function(){if(-1==window.location.pathname.indexOf("bbs")){getHotSeries()}loadSearchJS();htmlObj.setAttribute("data-y",document.body.scrollTop);addClass(htmlObj,SHOW_PANNEL_CLASS);searchWrapObj&&(searchWrapObj.scrollIntoView());addClass(htmlObj,DISABLE_SCROLL_CLASS);var tmpIptObj=document.search&&document.search.q;if(tmpIptObj){tmpIptObj.value="";tmpIptObj.focus()}loadLike()});var closeObj=document.getElementById("JwsCloseapp");closeObj&&closeObj.addEventListener("click",function(){iptObj&&enIptObj&&(enIptObj.value=iptObj.value);rmvClass(htmlObj,DISABLE_SCROLL_CLASS);var setY=htmlObj.getAttribute("data-y");setY&&(document.body.scrollTop=setY);rmvClass(htmlObj,SHOW_PANNEL_CLASS)});var enSubmitObj=document.getElementById("JenSubmit");enSubmitObj&&enSubmitObj.addEventListener("click",clickBtnSubmit);var submitObj=document.getElementById("JwsSubmit");submitObj&&submitObj.addEventListener("click",clickBtnSubmit);function clickBtnSubmit(){submitFlag=true;if("function"!=typeof wapSearchSubmit){loadSearchJS();return false}wapSearchSubmit()}function loadSearchJS(){if(sentFlag){return}sentFlag=true;var scriptObj=document.createElement("script");scriptObj.src="";scriptObj.charset="utf-8";var headObj=document.getElementsByTagName("head")[0];headObj.appendChild(scriptObj);scriptObj.onload=scriptObj.onreadystatechange=function(){var f=scriptObj.readyState;if(f&&f!="loaded"&&f!="complete"){return}scriptObj.onload=scriptObj.onreadystatechange=null;ks_search();if(submitFlag){wapSearchSubmit()}}}function getHotSeries(){var hotSeriesObj=document.getElementById("JhotSeries");var record=localStorage.getItem("wapSearchRecord");if(record!=null||!hotSeriesObj){return}loadScript(location.protocol+"",function(data){var html="";var seriesArr=data.data;if(seriesArr.length<0){return}for(var i=0,len=seriesArr.length;i<len;i++){var result=seriesArr[i];html+=''+result.id+'/" title="'+result.title+'">'+result.title+"</a>"}if(""!=html){hotSeriesObj.innerHTML=""+''+html+"";hotSeriesObj.style.display="block"}},"showHotseries")}function getParam(url,name){if(!url||!name){return}var name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regex=new RegExp("[\\?&]"+name+"=([^&#]*)");var results=regex.exec(url);return(null==results?null:results[1])}function loadScript(url,fn,callbackName,charset){var cbName=getParam(url,"jsCallBack");var callbackName=cbName||callbackName;var cb=cbName||!callbackName?"":"jsCallBack="+callbackName;var pos=url.indexOf("?")+1;if(cb){url=0==pos?(url+"?"+cb):(url.substring(pos,-1)+cb+"&"+url.substring(pos))}if("function"==typeof fn&&callbackName){window[callbackName]=fn}var headElm=document.getElementsByTagName("head")[0];var scriptElm=document.createElement("script");scriptElm.src=url;if(charset){scriptElm.charset=charset}headElm.appendChild(scriptElm);scriptElm.onload=scriptElm.onreadystatechange=function(){var f=scriptElm.readyState;if(f&&f!="loaded"&&f!="complete"){return}if("function"==typeof fn&&!cb){fn()}if(!cbName&&window[callbackName]){delete window[callbackName]}scriptElm.onload=scriptElm.onreadystatechange=null;headElm.removeChild(scriptElm)}}function getCookie(d){var b=d+"=";var a=document.cookie.split(";");for(var e=0;e<a.length;e++){var f=a[e];while(f.charAt(0)==" "){f=f.substring(1)
}if(f.indexOf(b)!=-1){return f.substring(b.length,f.length)}}return""}var allPage=1;var changePage=1;var likeSerials=[];function loadLike(){var uValue=getCookie("u");var html="";loadJS("",function(){loadJS("",function(){Locate.defaultData={};LocateAuto.defaultData={proId:5,cityId:1,url:""};LocateAuto.init({callback:function(data){var cityId=data.cityId;$.ajax({url:"",data:{uid:uValue,cityId:cityId},dataType:"jsonp",success:function(res){likeSerials=res;allPage=Math.ceil(res.length/8);for(var i=0;i<8;i++)document.getElementById("JwsLike").innerHTML=html}})}})},"utf-8")},"utf-8")}document.getElementById("JwsChange").onclick=function(){var html="";{var len=changePage*8;for(var i=(changePage-1)*8;i<len;i++){if(likeSerials[i]){html+=''}}document.getElementById("JwsLike").innerHTML=html}};iptObj.addEventListener("blur",function(e){!iptObj.value&&(iptObj.value=quotes[Math.floor(Math.random()*quotes.length)])})})();</script>
<!-- 推广说明 End -->

</body>
</html>